package com.onLineCar.management.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 * 司机查询表
 * </p>
 *
 * @author dsr
 * @since 2023-12-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class TDriver extends Model {

    // private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "driver_id", type = IdType.AUTO)
    private Integer driverId;

    /**
     * 姓名
     */
    private String driverName;

    /**
     * 住址
     */
    private String driverAddress;

    /**
     * 身份证号码
     */
    private String driverIdcard;

    /**
     * 性别
     */
    private String driverGender;

    /**
     * 司机简介
     */
    private String driverIntro;

    /**
     * 身份证照片
     */
    private String driverIdpic;

    /**
     * 驾驶证照片
     */
    private String driverCarpic;

    /**
     * 司机照片
     */
    private String driverPic;

    /**
     * 城市ID
     */
    private Integer cityId;

    /**
     * 车辆id
     */
    private Integer carId;

    /**
     * 司机状态ID
     */
    private Integer driverState;

    /**
     * 审核状态ID
     */
    private Integer checkState;


    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     * 审核操作人
     */
    private String handleName;

    /**
     * 司机评价等级
     */
    private Integer driverEvaluate;


    /**
     * 经度
     */
    private double driverLongitude;
    /**
     * 纬度
     */
    private double driverLatitude;

    /**
     * 电话
     */
    private String driverTell;

    /**
     * 城市名称
     */
    @TableField(exist = false)
    private String name;

    @TableField(exist = false)
    private String checkName;


    @TableField(exist = false)
    private String stateIntro;







}
